package ru.gitverse.deenyy.walp.model;

import jakarta.persistence.*;

@Entity
public class CalculationRequest {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @ManyToOne
    @JoinColumn(name = "calculation_batch_id")
    private CalculationBatch calculationBatch;

    @ManyToOne(cascade = CascadeType.ALL)
    private Angle leftAngleKL;

    @ManyToOne(cascade = CascadeType.ALL)
    private Angle leftAngleKR;

    @ManyToOne(cascade = CascadeType.ALL)
    private Angle rightAngleKL;

    @ManyToOne(cascade = CascadeType.ALL)
    private Angle rightAngleKR;

    // Getters and setters

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public CalculationBatch getCalculationBatch() {
        return calculationBatch;
    }

    public void setCalculationBatch(CalculationBatch calculationBatch) {
        this.calculationBatch = calculationBatch;
    }

    public Angle getLeftAngleKL() {
        return leftAngleKL;
    }

    public void setLeftAngleKL(Angle leftAngleKL) {
        this.leftAngleKL = leftAngleKL;
    }

    public Angle getLeftAngleKR() {
        return leftAngleKR;
    }

    public void setLeftAngleKR(Angle leftAngleKR) {
        this.leftAngleKR = leftAngleKR;
    }

    public Angle getRightAngleKL() {
        return rightAngleKL;
    }

    public void setRightAngleKL(Angle rightAngleKL) {
        this.rightAngleKL = rightAngleKL;
    }

    public Angle getRightAngleKR() {
        return rightAngleKR;
    }

    public void setRightAngleKR(Angle rightAngleKR) {
        this.rightAngleKR = rightAngleKR;
    }
}
